package com.chengzhi.structure;

/**
 * @description:
 * @author: ruanchengzhi
 * @create: 2020-05-20 09:20
 **/
public class LRUCacheTest {
    public static void main(String[] args) {
        LRUCache<Integer, Integer> cache = new LRUCache<>(2);
        cache.put(2,1);
        cache.put(1,1);
        cache.put(2,3);
        cache.put(4,1);
        System.out.println(cache.get(1));
        System.out.println(cache.get(2));
    }
}
